import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: "/index"

  },
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/login',
      name: 'login',
      component: resolve => require(['@/components/Login.vue'], resolve),
      title: "个人登录"
  },
    {
      path: '/company_login',
      name: 'company_login',
      component: resolve => require(['@/components/company_login.vue'], resolve),
      title: "企业登录"
  },
    {
      path: '/index',
      name: 'index',
      component: resolve => require(['@/view/index.vue'], resolve),
      title: "首页"
  },
  ]
})
